luci-app-attendedsysupgrade: add timeout and catch
authorPaul Spooren <[email protected]>
Mon, 9 Aug 2021 18:45:58 +0000 (08:45 -1000)
committerPaul Spooren <[email protected]>
Thu, 26 Aug 2021 07:52:00 +0000 (21:52 -1000)
commitdc626d506d43c34bad5434f4889aee3577795fb1
tree396af1c08ecc211a5c8bd0b52f94f75f7f06476c
parent505b671c210de07977321067c49a89570a33ebfa
luci-app-attendedsysupgrade: add timeout and catch

If the upgrade server API does not respond, show an error message.
Fix #5222

While at it, minimal code linting

Signed-off-by: Paul Spooren <[email protected]>
(cherry picked from commit ff24b78c807a52a0f9afb62ba0aba1085d9ad045)
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js